<style>
.memlogo-area{
	color: #fabbbb;
}
.color{
	color: #fabbbb;
}
.bgcolor{
	background: #fabbbb;
}
.memlogo-area .memlogo img{
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 0 solid #fff;
}
.memlogo-area .sign-btn{
    position: absolute;
	right:1.5rem;
    font-size:0.7rem;color:#fabbbb;
}
</style>
<div class='fui-page fui-page-current'>
	<div class='fui-content member-page'>
			<div style="margin:0.5rem;">
					<div class="memlogo-area" style="background: #333;">
						<div class="memlogo">
							<img ng-src="{{tomedia(pagedata.member.avatar) || '../core/resource/images/gw-user.png'}}">
						</div>
						<div class="name">{{pagedata.member.nickname || '匿名'}}</div>
						<br>
						<div class="name">{{pagedata.member.mobile || '无手机号'}} <span class="label label-default" style="color:#fabbbb;" href="javascript:;">{{pagedata.level.title || '默认等级'}}</span></div>
						<div class="code">
							<div class="jylabel jylabel-info" href="javascript:;" ng-click="access_json('core/member.credit_log/')" style="border: 1px solid red;color:red;">积分日志</div>
						</div>
						<div class="bot">
							<div class="sign-btn label label-default" href="javascript:;" ng-click="access_json('jy_weishop/index/')">消费练功</div>
							<div class="jy-2">
							<h5 href="javascript:;">我的内力 <a ng-click="pagedata.showzhuan=true" ><span style="color:red;line-height: 1">兑换</span></a></h5>
							<h2 style="margin-top:0;">{{pagedata.item.neili || '0.00'}} </h2>
							</div>
							<div class="jy-2" style="margin-top:1.5rem">
								<span class="r-f label label-default" style="font-size:0.7rem;color:#fabbbb;" href="javascript:;" ng-click="access_json('jy_jianghu/item//mid='+pagedata.member.id)">我的帮派</span>
								<span class="r-f label label-default" style="font-size:0.7rem;margin-right:0.5rem;color:#fabbbb;" href="javascript:;" ng-click="access_json('jy_jianghu/member/')">内力榜</span>
							</div>
						</div>
					</div>
					<div class="tips" style="margin-top:-0.8rem;background: url('../addons/jy_jianghu/resource/images/bgdi.png');">
						<i class="fa fa-bullhorn"></i> [<red>江湖通告</red>]：{{pagedata.pluginset.jianghutips || '侠士们，每人最多可加入81个帮派，加入越多帮派，帮众消费练功/新帮众入帮，您都可获得的《内力》哦！只能通过他人分享，才能加入帮派哦！'}}
					</div>
			</div>
			
			<div class="fixed-title" style="margin-top:1rem">
							 <span class="befirst spacing">
								 <span class="icon icon-fengexianzuo" style="font-size:2rem;color:#666"></span>
							 </span> 
							 <span class="title-text bold" style="color:#333;line-height:2rem">传功记录</span> 
							 <span class="spacing">
								 <span class="icon icon-fengexianyou" style="font-size:2rem;color:#666"></span>
							 </span>
			</div>
			<div class='content-empty' ng-show="!pagedata.list || pagedata.list.length<=0">
				<i class='fa fa-comment-o'></i><br/><br/>暂时没有内力~传功记录!
			</div>
			<div style="padding:0 0.5rem">
			<div class='fui-list-group container' ng-show="pagedata.list.length>0" >
				<div class="fui-list goods-item" ng-repeat="item in pagedata.list">
					<div class="fui-list-media">
						<img ng-if="item.member.avatar" ng-src="{{tomedia(item.member.avatar)}}" class="round" style="width:2rem;height:2rem">
						<i ng-if="!item.member.avatar" class="icon icon-my2"></i>
					</div>
					<div class="fui-list-inner">
						<div class='title'>
							<span ng-show="item.isadd==1" class="label label-success">增加内力</span>
							<span ng-show="item.isadd!=1" class="label label-danger">消耗内力</span>
							<span class="red" style="margin-left:0.3rem">{{item.fee}}</span>
							<span class="gray" style="font-size:0.6rem;"> 点</span>
						</div>
						<div class='gray'>{{item.createtime}}</div>
					</div>
					<div class='fui-list-angle'>
						<span class='fui-label fui-label-default gray' style="background:#f2f2f2;border-radius:0.2rem;">{{item.msg}}</span>
					</div>
				</div>
			</div>
			</div>
	</div>
</div>
<div ng-if="pagedata.showzhuan" class="popup">
	<div class="popup-body">
		<div class="popup-center" style="background:#fc6d60">
			<style>
				input{ caret-color: #fff}
				.fui-cell-group .fui-cell .fui-cell-info  ::-webkit-input-placeholder{
					color: #fff
				}
				.fui-cell-group .fui-cell .fui-cell-info {
					font-size: 0.85rem;
					color: #fff;
				}
			</style>
			<i class="closed icon icon-cuowu" ng-click="pagedata.showzhuan=false"></i>
			 <div class='fui-cell-group fui-cell-group-o' style="margin:0.5rem 2rem;padding-top:0.5rem;background:#fc6d60">
				<div class='fui-cell-title c' style="color:#fff">您正在进行内力传输
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;color:#fff'><i class="icon icon-pinpai" style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'><input type='text' class='fui-input' placeholder="传输内力点数" ng-model="pagedata.post.fee" ng-change="pagedata.refresh()"></div>
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;color:#fff'><i class="icon icon-jifen"  style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'>获得积分：{{pagedata.post.credit || 0}}</div>
				</div>				
			</div>
			<div class='fui-cell-title c' style="color:#fff">
					消耗【{{pagedata.pluginset.creditrate || 10}}】点内力，可获得1点积分。
			</div>
			<div class="weui_btn_area" style="margin:2rem;">
				<a class='weui_btn weui_btn_primary' style="border-radius:1rem;background-color:#fff;color:#fc6d60" ng-click="post(pagedata.post,'post')">确认兑换</a>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('pluginnav')"></div>
<script>
scope.tool.get_list('jy_jianghu/home/list/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_jianghu/home/list/');
}
scope.pagedata.refresh=function(){
	scope.pagedata.pluginset.creditrate=scope.pagedata.pluginset.creditrate?scope.pagedata.pluginset.creditrate:10;
	scope.pagedata.post.credit=scope.pagedata.post.fee/scope.pagedata.pluginset.creditrate;
	scope.$evalAsync();
}
</script>